home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000003_news@newsmaster….columbia.edu _Sun Dec 13 14:42:35 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA13739
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 13 Dec 1998 14:42:34 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA23218
  7.     for kermit.misc@watsun; Sun, 13 Dec 1998 14:42:34 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: help with scripting
  12. Date: 13 Dec 1998 19:42:30 GMT
  13. Organization: Columbia University
  14. Lines: 26
  15. Message-ID: <7515b6$u1$1@apakabar.cc.columbia.edu>
  16. References: <Pine.SGI.4.05.9812101557050.64066-100000@poros.cis.jhu.edu> <74rdgh$l7s$1@apakabar.cc.columbia.edu> <3671E512.4303@value.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:9635
  19.  
  20. In article <3671E512.4303@value.net>, Mark Sapiro  <msapiro@value.net> wrote:
  21. : Frank da Cruz wrote:
  22. : > ...
  23. : > A better consruction for this might be:
  24. : > 
  25. : >   undef \%n
  26. : >   switch \%l {
  27. : >     :p, def \%n 410-516-2926
  28. : >     :m, def \%n 410-516-2927
  29. : >     :l, def \%n 410-516-2928
  30. : >     :default, stop 1 "\%l": Invalid response
  31. : >   }
  32. : Shouldn't there be 'break' statements in the above.
  33. : i.e.
  34. :    undef \%n
  35. :    switch \%l {
  36. :      :p, def \%n 410-516-2926, break
  37. :      :m, def \%n 410-516-2927, break
  38. :      :l, def \%n 410-516-2928, break
  39. :      :default, stop 1 "\%l": Invalid response
  40. :    }
  41. Yes, thanks.
  42.  
  43. - Frank